package com.kunka.impl.auth;

import com.kunka.api.entity.auth.VerifyCode;
import com.kunka.api.service.auth.CharVerifyCodeService;
import com.kunka.util.SimpleCharVerifyCodeUtil;
import org.apache.dubbo.config.annotation.Service;


@Service(interfaceClass = CharVerifyCodeService.class)
public class SimpleCharVerifyCodeServiceImpl implements CharVerifyCodeService {


    @Override
    public VerifyCode createGraphicCode() {

        //设置长宽
        VerifyCode verifyCode = SimpleCharVerifyCodeUtil.generate(80, 28);

        return verifyCode;
    }
}
